{include file="header.htm" /}
<body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page min-hg-c-20">
    {include file="bar.htm" /}
    <form class="form-horizontal" id="post_form" action="{:weapp_url('Seckill/Seckill/conf')}" method="post">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label>未付款订单</label>
                </dt>
                <dd class="opt">
                    <label class="curpoin"><input name="seckill[seckill_close_order_type]" value="0" type="radio" {if condition="empty($config.seckill_close_order_type)"} checked="checked" {/if} onclick="change_order_type(this);">永不关闭</label>
                    &nbsp;
                    <label class="curpoin"><input name="seckill[seckill_close_order_type]" value="1" type="radio" {if condition="!empty($config.seckill_close_order_type)"} checked="checked" {/if} onclick="change_order_type(this);">自定义关闭时间</label>
                    <span class="err"></span>
                    <p class="notic">秒杀抢购只读取本交易规则设置</p>
                    <dl class="row mt10 {if condition='empty($config.seckill_close_order_type)'}none{/if}" style="background: #f4f4f4;" id="open_type">
                        <dt class="tit">
                            <label>订单关闭时间</label>
                        </dt>
                        <dd class="opt">
                            <input type="text" name="seckill[seckill_close_order_time]" value="{$config.seckill_close_order_time|default=15}" class="input-txt" style="width: 60px !important;"> 分钟内未付款，自动关闭订单
                            <span class="err"></span>
                            <p class="notic2">订单自动关闭时间必须在5-60分钟之间，订单关闭后自动退还库存。</p>
                        </dd>
                    </dl>
                </dd>
            </dl>
            <div class="bot mt20">
                <a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    function change_order_type(obj) {
        var val = $(obj).val();
        if (0 == val) {
            $('#open_type').hide();
        }else if (1 == val) {
            $('#open_type').show();
        }
    }
    // 判断输入框是否为空
    function checkForm(){
        layer_loading('正在处理');
        $('#post_form').submit();
    }
</script>
{include file="footer.htm" /}